package developer.zyk.ability.knowledge.bo;

import cn.hutool.core.date.DateUtil;
import developer.zyk.global.user.bo.UserInfo;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zhangyongkang
 * @time 2025/5/15 15:47
 * @description
 */
@Data
@NoArgsConstructor
public class OperateRecord implements Serializable {
    private String id;
    private UserInfo userInfo;

    private String status;
    private String statusText;

    private String msg;
    private String operateTime;

    public OperateRecord(
            String id,
            UserInfo userInfo,
            String status,
            String statusText,
            String msg
    ) {
        this.id = id;
        this.userInfo = userInfo;
        this.status = status;
        this.statusText = statusText;
        this.msg = msg;
        this.operateTime = DateUtil.now();
    }
}
